// const _ = require('arr_transform')
// console.log(_.myChunk([1, 24, 5, 6, 4,], 3));
// console.log(_.myContact([2], [2, [4]]));
const http = require('http')

const server = http.createServer((req, rep) => {
    const url = req.url
    console.log(req.url);
    switch (url) {
        case '/data/fun':
            rep.write('init("hello, jsonp")')
            break;
        default:
            rep.write('404')
            break;
    }
    rep.end()
})
server.listen(8081)